package com.woniuxy.intellihome.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniuxy.intellihome.entity.VCredit;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author ganrun
 * @since 2021-08-16
 */
public interface VCreditMapper extends BaseMapper<VCredit> {
    /**
     * 根据用户id查询积分详情
     */
    @Select("select * from v_credit where user_id = #{id}")
    List<VCredit> getByUserId(int id);
}
